let router = require('express').Router()

let { getColloctList, getCollectContent, addCollect, addCollectTitle, RemoveCollectTitle, RemoveCollectConent, UpdateCollectContent } = require('../controller/collect')
let { testToken } = require('../middleware/users')
let { testCollect } = require('../middleware/collect')
router.get('/list', testToken, getColloctList)
router.post('/content', testToken, getCollectContent)
router.put('/addcollect', testToken, testCollect, addCollect)
router.put('/addtitle', testToken, addCollectTitle)
router.delete('/deletetitle', testToken, RemoveCollectTitle)
router.delete('/deletecontent', testToken, RemoveCollectConent)
router.post('/updatecontent', testToken, UpdateCollectContent)




module.exports = router